home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / µSim 1.1 / FabLibsƒ / RegistrationUSA.r < prev    next >
Encoding:
Text File  |  1996-02-21  |  9.4 KB  |  425 lines  |  [TEXT/CWIE]

  1. /*
  2. Copyright © 1993,1994 by Fabrizio Oddone
  3. ••• ••• ••• ••• ••• ••• ••• ••• ••• •••
  4. This source code is distributed as freeware: you can copy, exchange, modify this
  5. code as you wish. You may include this code in any kind of application: freeware,
  6. shareware, or commercial, provided that full credits are given.
  7. You may not sell or distribute this code for profit.
  8. */
  9. #include    "FabLibResIDs.h"
  10.  
  11. #define NumTextLines        3
  12.  
  13. resource 'ALRT' (kALRT_REGCANNOTREPLACE, purgeable) {
  14.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  15.     kALRT_REGCANNOTREPLACE,
  16.     {    /* array: 4 elements */
  17.         /* [1] */
  18.         OK, visible, sound2,
  19.         /* [2] */
  20.         OK, visible, sound2,
  21.         /* [3] */
  22.         OK, visible, sound2,
  23.         /* [4] */
  24.         OK, visible, sound2
  25.     },
  26.     alertPositionMainScreen
  27. };
  28.  
  29. resource 'DITL' (kALRT_REGCANNOTREPLACE, purgeable) {
  30.     {    /* array DITLarray: 2 elements */
  31.         /* [1] */
  32.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  33.         Button {
  34.             enabled,
  35.             "OK"
  36.         },
  37.         /* [2] */
  38.         {TextTop, TextLeft, TextBottom, TextRight},
  39.         StaticText {
  40.             disabled,
  41.             "You cannot save over an existing document; "
  42.             "please try again, renaming the document or saving elsewhere."
  43.         }
  44.     }
  45. };
  46.  
  47. #define NumTextLines        6
  48.  
  49. resource 'ALRT' (kALRT_REGSUCCESSSAVED, purgeable) {
  50.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  51.     kALRT_REGSUCCESSSAVED,
  52.     {    /* array: 4 elements */
  53.         /* [1] */
  54.         OK, visible, silent,
  55.         /* [2] */
  56.         OK, visible, silent,
  57.         /* [3] */
  58.         OK, visible, silent,
  59.         /* [4] */
  60.         OK, visible, silent
  61.     },
  62.     alertPositionMainScreen
  63. };
  64.  
  65. resource 'DITL' (kALRT_REGSUCCESSSAVED, purgeable) {
  66.     {    /* array DITLarray: 2 elements */
  67.         /* [1] */
  68.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  69.         Button {
  70.             enabled,
  71.             "OK"
  72.         },
  73.         /* [2] */
  74.         {TextTop, TextLeft, TextBottom, TextRight},
  75.         StaticText {
  76.             disabled,
  77.             "The document “^0” has been successfully saved. "
  78.             "You may print this document with SimpleText or your favorite "
  79.             "text editing application."
  80.         }
  81.     }
  82. };
  83.  
  84. #define NumTextLines        5
  85.  
  86. resource 'ALRT' (kALRT_REGDISKFULL, purgeable) {
  87.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  88.     kALRT_REGDISKFULL,
  89.     {    /* array: 4 elements */
  90.         /* [1] */
  91.         OK, visible, sound1,
  92.         /* [2] */
  93.         OK, visible, sound1,
  94.         /* [3] */
  95.         OK, visible, sound1,
  96.         /* [4] */
  97.         OK, visible, sound1
  98.     },
  99.     alertPositionMainScreen
  100. };
  101.  
  102. resource 'DITL' (kALRT_REGDISKFULL, purgeable) {
  103.     {    /* array DITLarray: 2 elements */
  104.         /* [1] */
  105.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  106.         Button {
  107.             enabled,
  108.             "OK"
  109.         },
  110.         /* [2] */
  111.         {TextTop, TextLeft, TextBottom, TextRight},
  112.         StaticText {
  113.             disabled,
  114.             "The document “^0” has not been successfully saved, "
  115.             "because the disk is full. "
  116.             "Try saving onto another disk."
  117.         }
  118.     }
  119. };
  120.  
  121. #define NumTextLines        5
  122.  
  123. resource 'ALRT' (kALRT_REGUNKNOWNWRITEERROR, purgeable) {
  124.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  125.     kALRT_REGUNKNOWNWRITEERROR,
  126.     {    /* array: 4 elements */
  127.         /* [1] */
  128.         OK, visible, sound1,
  129.         /* [2] */
  130.         OK, visible, sound1,
  131.         /* [3] */
  132.         OK, visible, sound1,
  133.         /* [4] */
  134.         OK, visible, sound1
  135.     },
  136.     alertPositionMainScreen
  137. };
  138.  
  139. resource 'DITL' (kALRT_REGUNKNOWNWRITEERROR, purgeable) {
  140.     {    /* array DITLarray: 2 elements */
  141.         /* [1] */
  142.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  143.         Button {
  144.             enabled,
  145.             "OK"
  146.         },
  147.         /* [2] */
  148.         {TextTop, TextLeft, TextBottom, TextRight},
  149.         StaticText {
  150.             disabled,
  151.             "The document “^0” has not been successfully saved, "
  152.             "because of an error ^1. "
  153.             "Try saving onto another disk."
  154.         }
  155.     }
  156. };
  157.  
  158. #define NumTextLines        2
  159.  
  160. resource 'ALRT' (kALRT_REGCOULDNOTOPENFORWRITING, purgeable) {
  161.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  162.     kALRT_REGCOULDNOTOPENFORWRITING,
  163.     {    /* array: 4 elements */
  164.         /* [1] */
  165.         OK, visible, sound1,
  166.         /* [2] */
  167.         OK, visible, sound1,
  168.         /* [3] */
  169.         OK, visible, sound1,
  170.         /* [4] */
  171.         OK, visible, sound1
  172.     },
  173.     alertPositionMainScreen
  174. };
  175.  
  176. resource 'DITL' (kALRT_REGCOULDNOTOPENFORWRITING, purgeable) {
  177.     {    /* array DITLarray: 2 elements */
  178.         /* [1] */
  179.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  180.         Button {
  181.             enabled,
  182.             "OK"
  183.         },
  184.         /* [2] */
  185.         {TextTop, TextLeft, TextBottom, TextRight},
  186.         StaticText {
  187.             disabled,
  188.             "Could not open the document for writing. "
  189.             "Try saving onto another disk."
  190.         }
  191.     }
  192. };
  193.  
  194. #define NumTextLines        2
  195.  
  196. resource 'ALRT' (kALRT_REGWEIRDCOULDNOTCREATE, purgeable) {
  197.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  198.     kALRT_REGWEIRDCOULDNOTCREATE,
  199.     {    /* array: 4 elements */
  200.         /* [1] */
  201.         OK, visible, sound1,
  202.         /* [2] */
  203.         OK, visible, sound1,
  204.         /* [3] */
  205.         OK, visible, sound1,
  206.         /* [4] */
  207.         OK, visible, sound1
  208.     },
  209.     alertPositionMainScreen
  210. };
  211.  
  212. resource 'DITL' (kALRT_REGWEIRDCOULDNOTCREATE, purgeable) {
  213.     {    /* array DITLarray: 2 elements */
  214.         /* [1] */
  215.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  216.         Button {
  217.             enabled,
  218.             "OK"
  219.         },
  220.         /* [2] */
  221.         {TextTop, TextLeft, TextBottom, TextRight},
  222.         StaticText {
  223.             disabled,
  224.             "Could not create the document (error ^0). "
  225.         }
  226.     }
  227. };
  228.  
  229. #define NumTextLines        3
  230.  
  231. resource 'ALRT' (kALRT_WOWTHATMANYCOPIES, purgeable) {
  232.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  233.     kALRT_WOWTHATMANYCOPIES,
  234.     {    /* array: 4 elements */
  235.         /* [1] */
  236.         OK, visible, sound1,
  237.         /* [2] */
  238.         OK, visible, sound1,
  239.         /* [3] */
  240.         OK, visible, sound1,
  241.         /* [4] */
  242.         OK, visible, sound1
  243.     },
  244.     alertPositionParentWindowScreen
  245. };
  246.  
  247. resource 'DITL' (kALRT_WOWTHATMANYCOPIES, purgeable) {
  248.     {    /* array DITLarray: 2 elements */
  249.         /* [1] */
  250.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  251.         Button {
  252.             enabled,
  253.             "OK"
  254.         },
  255.         /* [2] */
  256.         {TextTop, TextLeft, TextBottom, TextRight},
  257.         StaticText {
  258.             disabled,
  259.             "Wow! That many copies! "
  260.             "Send one million dollars, and I’ll be a happy man."
  261.         }
  262.     }
  263. };
  264.  
  265. #define NumTextLines        3
  266.  
  267. resource 'ALRT' (kALRT_REGDISKFULLCOULDNOTCREATE, purgeable) {
  268.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  269.     kALRT_REGDISKFULLCOULDNOTCREATE,
  270.     {    /* array: 4 elements */
  271.         /* [1] */
  272.         OK, visible, sound1,
  273.         /* [2] */
  274.         OK, visible, sound1,
  275.         /* [3] */
  276.         OK, visible, sound1,
  277.         /* [4] */
  278.         OK, visible, sound1
  279.     },
  280.     alertPositionMainScreen
  281. };
  282.  
  283. resource 'DITL' (kALRT_REGDISKFULLCOULDNOTCREATE, purgeable) {
  284.     {    /* array DITLarray: 2 elements */
  285.         /* [1] */
  286.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  287.         Button {
  288.             enabled,
  289.             "OK"
  290.         },
  291.         /* [2] */
  292.         {TextTop, TextLeft, TextBottom, TextRight},
  293.         StaticText {
  294.             disabled,
  295.             "Could not create the document: the disk is full (error ^0). "
  296.         }
  297.     }
  298. };
  299.  
  300. #define NumTextLines        3
  301.  
  302. resource 'ALRT' (kALRT_REGDISKLOCKEDCOULDNOTCREATE, purgeable) {
  303.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  304.     kALRT_REGDISKLOCKEDCOULDNOTCREATE,
  305.     {    /* array: 4 elements */
  306.         /* [1] */
  307.         OK, visible, sound1,
  308.         /* [2] */
  309.         OK, visible, sound1,
  310.         /* [3] */
  311.         OK, visible, sound1,
  312.         /* [4] */
  313.         OK, visible, sound1
  314.     },
  315.     alertPositionMainScreen
  316. };
  317.  
  318. resource 'DITL' (kALRT_REGDISKLOCKEDCOULDNOTCREATE, purgeable) {
  319.     {    /* array DITLarray: 2 elements */
  320.         /* [1] */
  321.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  322.         Button {
  323.             enabled,
  324.             "OK"
  325.         },
  326.         /* [2] */
  327.         {TextTop, TextLeft, TextBottom, TextRight},
  328.         StaticText {
  329.             disabled,
  330.             "Could not create the document: the disk is locked (error ^0). "
  331.         }
  332.     }
  333. };
  334.  
  335. #define NumTextLines        3
  336.  
  337. resource 'ALRT' (kALRT_REGACCESSDENIEDCOULDNOTCREATE, purgeable) {
  338.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  339.     kALRT_REGACCESSDENIEDCOULDNOTCREATE,
  340.     {    /* array: 4 elements */
  341.         /* [1] */
  342.         OK, visible, sound1,
  343.         /* [2] */
  344.         OK, visible, sound1,
  345.         /* [3] */
  346.         OK, visible, sound1,
  347.         /* [4] */
  348.         OK, visible, sound1
  349.     },
  350.     alertPositionMainScreen
  351. };
  352.  
  353. resource 'DITL' (kALRT_REGACCESSDENIEDCOULDNOTCREATE, purgeable) {
  354.     {    /* array DITLarray: 2 elements */
  355.         /* [1] */
  356.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  357.         Button {
  358.             enabled,
  359.             "OK"
  360.         },
  361.         /* [2] */
  362.         {TextTop, TextLeft, TextBottom, TextRight},
  363.         StaticText {
  364.             disabled,
  365.             "Could not create the document: access denied (error ^0). "
  366.         }
  367.     }
  368. };
  369.  
  370. resource 'STR ' (kSTR_RegPROMPT, purgeable) {
  371.     "Save registration form as:"
  372. };
  373.  
  374. resource 'STR ' (kSTR_RegDEFNAME, purgeable) {
  375.     "Registration"
  376. };
  377.  
  378. resource 'STR ' (kSTR_RegDECALLOWED, purgeable) {
  379.     "0123456789\$7F"
  380. };
  381.  
  382. resource 'STR#' (1100, purgeable) {
  383.     {
  384.         /* [1] ok */
  385.             "To save the registration form in a text document, click here.",
  386.         /* [2] cancel */
  387.             "To cancel, click here.",
  388.         /* [3] Name */
  389.             "Enter your full name.",
  390.         /* [4] Company */
  391.             "Enter your company name, if applicable.",
  392.         /* [5] Address */
  393.             "Enter your address.",
  394.         /* [6] City */
  395.             "Enter your city.",
  396.         /* [7] State */
  397.             "Enter your state.",
  398.         /* [8] ZIP */
  399.             "Enter your ZIP code.",
  400.         /* [9] Country */
  401.             "Enter your country name.",
  402.         /* [10] e-mail */
  403.             "Enter your electronic mail addresses. This is important because you can obtain "
  404.             "upgrades from me via e-mail. "
  405.             "(i.e. Internet, America Online, Compuserve, AppleLink, MCI Mail, etc.)",
  406.         /* [11] Phone */
  407.             "Enter your phone number, if you wish.",
  408.         /* [12] FAX */
  409.             "Enter your fax phone number, if you wish.",
  410.         /* [13] copies */
  411.             MACRO_COPIES,
  412.         /* [14] from */
  413.             "Enter how you heard of this software, and how you obtained it. "
  414.             "(i.e. a friend, a Mac User Group, a Bulletin Board System, a CD-ROM, "
  415.             "a magazine, an Internet site, etc.)",
  416.         /* [15] suggestions */
  417.             "Enter your comments about this software. Let me know your suggestions, problems, "
  418.             "anything you might think of.",
  419.         /* [16] price */
  420.             "Here appears the sum due for this software. The more copies you "
  421.             "buy, the less you pay per copy.",
  422.     }
  423. };
  424.  
  425.